//
//  dvd.h
//  Rainbow
//
//  Created by Alex on 21/07/09.
//  Copyright 2009 Erasmus Software. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <Quartz/Quartz.h>

#import "XMLInterface.h"
#import "itemGridDVD.h"

#define kId			@"Id"
#define kTitle		@"Title"
#define kDirector	@"Director"
#define kYear		@"Year"
#define kLanguage	@"Language"
#define kType		@"Type"
#define kActor		@"Actor"
#define kSummary	@"Summary"
#define kTags	    @"Tags"
#define kComment	@"Comment"
#define kPath		@"Path"


@interface Dvd : NSObject {
	NSMutableArray	*_dvds;
	NSMutableArray	*_oldDvds;
	XMLInterface	*_XMLTree;
}

- (id)				init;
- (int)				count;
- (NSDictionary*)	itemAtIndex:(int)index;
- (void)			addDvdWithTitle:(NSString *)title director:(NSString *)director year:(NSString*)year language:(NSString*)language type:(NSString*)type 
							  actor:(NSString*)actor summary:(NSString*)summary comment:(NSString *)comment tags:(NSString*)tags path:(NSString*)path;
- (void)			removeItemAtIndex:(unsigned int)index;
- (void)			changeDvdAtIndex:(unsigned int)index item:(NSDictionary*)item;
- (void)			setDvdOwner:(NSString *)owner;
- (NSString *)		reinitialize;
- (NSString *)		updatewithPredicate:(NSPredicate *)regexp;

@end

